package src.java.easy;

public class Solution3131 {
    public int addedInteger(int[] nums1, int[] nums2) {
        return findMax(nums2)-findMax(nums1);
    }

    public int findMax(int[] nums) {
        int max = Integer.MIN_VALUE;
        for (int num : nums) {
            if (num > max) max = num;
        }
        return max;
    }
}
